home *** CD-ROM | disk | FTP | other *** search
- Path: news.informatik.uni-muenchen.de!usenet
- From: Kurt Watzka <watzka@stat.uni-muenchen.de>
- Newsgroups: comp.lang.c
- Subject: Re: C prog needs help with win 3.1
- Date: Wed, 28 Feb 1996 15:31:48 +0100
- Organization: Institut fⁿr Statistik
- Message-ID: <31346754.354@stat.uni-muenchen.de>
- NNTP-Posting-Host: pc7.stat.uni-muenchen.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- John Dillworth wrote:
- >
- > I need to insert a blank line between each printed line of text in this
- > Windows program fragment:
- >
-
- [lots of lines with system specific stuff better asked in
- comp.os.ms-windows.programmer.misc edited]
-
- > Now in C I plain old ANSI C I would just put a couple of printf's with
- > newline characters. This dosn't work with windows (this is c huh?? ;-) ).
-
- So there you have your ANSI C answer: If you want blank lines
- beween your lines
- in your programs output, insert additional newline characters.
-
- Your question is not a question about the C programming
- language, but the
- question you ask is not specific to any programming language.
- Questions
- like this should better go to comp.programming. But, let me
- rephrase this
- question first:
-
- How do I add two times dy to a variabe y in each iteration of a
- loop instead of
- just dy?
-
- int i, y = 0, dy = 5;
- for (i = 0; i < N; i++)
- y += dy;
- ^^ change this to "2 * dy" or make dy twice as big.
-
- Kurt
-